class WelcomeController < ApplicationController
	def index
		#@articles = Article.find(:all, :order => "created_at DESC", :limit => 10)
		@categories = Category.root
		if logged_in?
			@comments = current_user.last_comments
			@communities = Community.find(:all, :order=>"created_at DESC", :limit=>3)
			@friends = (current_user.pending_friends_by_me + current_user.friends).uniq
			render :template => "welcome/index_logged_in" 
		end
	end
end
